<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>

<script type="text/javascript">
	$(document).ready(function(){
	  $(".toPage").click(function(){
	  	alert('ni');
	    $.ajax({
	    	url: "http://localhost/Zend/html/index/index",
	    	type: "POST",
	    	data: "format=json",
	    	async: false,
	    	success:function(result){
	    		
		    	alert(response);
		  }});
	  });
	});
</script>

<div class="paging">
	{if $objPage.current != $objPage.first}
		<a href='?page={$objPage.first}'> First</a>
		<span>&nbsp;</span>
	{/if}

	{if $objPage.current != $objPage.first}
		<a href='?page={$objPage.previous}'> Previous</a>
	{/if}

	{foreach from=$objPage.pagesInRange item=pageNumber}
    	{if $objPage.current == $pageNumber}
			{$pageNumber}<span>&nbsp;</span>
		{else}
			<a class="toPage" > {$pageNumber}</a>
			<span>&nbsp;</span>
		{/if}
		
    {/foreach}	

    {if $objPage.current != $objPage.last}
		<a href='?page={$objPage.next}'> Next </a>
		<span>&nbsp;</span>
	{/if}

    {if $objPage.current != $objPage.last}
		<a href='?page={$objPage.last}'> Last</a>
		<span>&nbsp;</span>
	{/if}
</div>